package com.zzyk.main.mapper;

import com.zzyk.main.model.pojo.DeviceParam;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface DeviceParamMapper {
    /**
     * insert record to table
     *
     * @param record the record
     * @return insert count
     */
    int insert(DeviceParam record);

    /**
     * insert record to table selective
     *
     * @param record the record
     * @return insert count
     */
    int insertSelective(DeviceParam record);

    /**
     * select by primary key
     *
     * @param id primary key
     * @return object by primary key
     */
    DeviceParam selectByPrimaryKey(Integer id);

    /**
     * update record selective
     *
     * @param record the updated record
     * @return update count
     */
    int updateByPrimaryKeySelective(DeviceParam record);

    DeviceParam selectOneByDeviceId(@Param("clientId") String clientId);

    Integer selectWiringByClientID(@Param("clientId") String clientId);
}